<%@page import="cn.yunhe.biz.CateBiz"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String cid = request.getParameter("cateId");
	int cateid=Integer.parseInt(cid);	

	CateBiz cateBiz=new CateBiz();
	boolean flag=cateBiz.deleteCateById(cateid);
	
	if(flag){
		out.print("<script>alert('删除成功');location.href='cateList.jsp'</script>");
	}else{
		out.print("<script>alert('删除失败');location.href='cateList.jsp'</script>");
	}
	

%>
